package com.amsp.oa.oademo.service;

import com.amsp.oa.oademo.entity.WorkPlanAssessment;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface WorkPlanAssessmentService extends IService<WorkPlanAssessment> {

    /**
     * 保存工作计划考核（包含明细）
     */
    WorkPlanAssessment saveWithDetails(WorkPlanAssessment assessment);

    /**
     * 分页查询工作计划考核
     */
    IPage<WorkPlanAssessment> getPage(Integer current, Integer size, String name, String department,
            String position, Integer year, Integer month);

    /**
     * 获取工作计划考核详情
     */
    WorkPlanAssessment getDetailById(Long id);

    /**
     * 删除工作计划考核（包含明细）
     */
    boolean removeWithDetails(Long id);
}